import { defineConfig } from 'vite';
import solidPlugin from 'vite-plugin-solid';
import path from 'node:path';

export default defineConfig({
  plugins: [solidPlugin()],
  build: {
    target: 'esnext',
    polyfillDynamicImport: false,
  },
  resolve: {
    conditions: ['development', 'browser'],
    alias: {
      // 'cui-solid-icons': path.resolve('./cui-icons'),
      // 'cui-solid': path.resolve('./cui-solid'),
      // 'solid-vue-router': path.resolve('./solid-router'),
    }
  },
  server: {
    port: 5556,
    host: '0.0.0.0',
  },
  base: './'
});
